<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/SSM/js/layui/css/layui.css" media="all">
<title>Insert title here</title>
</head>
<body>

	<form class="layui-form" action="addUserInfo" method="post">

		<input type="hidden" value="${users.id }" name="id">
		<div class="layui-form-item">
			<label class="layui-form-label">账号</label>
			<div class="layui-input-block">
				<input name="acc" class="layui-input" type="text"
					placeholder="请输入标题" autocomplete="off" lay-verify="title"
					value="${users.acc }">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">密码</label>
			<div class="layui-input-block">
				<input name="pwd" class="layui-input" type="text"
					placeholder="请输入标题" autocomplete="off" lay-verify="title"
					value="${users.pwd }">
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">生日</label>
			<div class="layui-input-block">
				<input name="birthday" class="layui-input" id="date" type="text"
					placeholder="yyyy-MM-dd" autocomplete="off" lay-verify="date"
					value='<fmt:formatDate value="${users.birthday }" pattern="yyyy-MM-dd"/>'
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">姓名</label>
			<div class="layui-input-block">
				<input name="name1" class="layui-input" type="text"
					placeholder="请输入标题" autocomplete="off" lay-verify="title"
					value="${users.name1 }">
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-filter="demo1" lay-submit="">立即提交</button>
				<button class="layui-btn layui-btn-primary" type="reset">重置</button>
			</div>
		</div>
	</form>
	<script src="/SSM/js/layui/layui.js" charset="utf-8"></script>
	<script>
		layui
				.use(
						[ 'form', 'layedit', 'laydate' ],
						function() {
							var form = layui.form, layer = layui.layer, layedit = layui.layedit, laydate = layui.laydate;

							//日期
							laydate.render({
								elem : '#date'
							});
							//监听提交
							form.on('submit(demo1)', function(data) {
								return true;
							});
						});
	</script>

</body>
</html>